package com.ruoyi.inspection.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Id;

/**
 * 人员对象 t_people
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
public class TPeople extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 巡检人员表主键id */
    private String id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 年龄单位 */
    @Excel(name = "年龄单位")
    private String ageUnit;

    /** 生日 */
    @Excel(name = "生日")
    private String birthday;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCardNo;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 薪资 */
    @Excel(name = "薪资")
    private BigDecimal salary;

    /** 0-年薪 1-月薪 2-日薪 */
    @Excel(name = "0-年薪 1-月薪 2-日薪")
    private Integer salaryType;

    /** 照片 */
    @Excel(name = "照片")
    private String photo;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Integer deleteFlag;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 添加人 */
    @Excel(name = "添加人")
    private String addBy;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifyBy;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setAgeUnit(String ageUnit) 
    {
        this.ageUnit = ageUnit;
    }

    public String getAgeUnit() 
    {
        return ageUnit;
    }
    public void setBirthday(String birthday) 
    {
        this.birthday = birthday;
    }

    public String getBirthday() 
    {
        return birthday;
    }
    public void setIdCardNo(String idCardNo) 
    {
        this.idCardNo = idCardNo;
    }

    public String getIdCardNo() 
    {
        return idCardNo;
    }
    public void setSalary(BigDecimal salary) 
    {
        this.salary = salary;
    }

    public BigDecimal getSalary() 
    {
        return salary;
    }
    public void setSalaryType(Integer salaryType) 
    {
        this.salaryType = salaryType;
    }

    public Integer getSalaryType() 
    {
        return salaryType;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setDeleteFlag(Integer deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Integer getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }
    public void setAddBy(String addBy) 
    {
        this.addBy = addBy;
    }

    public String getAddBy() 
    {
        return addBy;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setModifyBy(String modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public String getModifyBy() 
    {
        return modifyBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sex", getSex())
            .append("age", getAge())
            .append("ageUnit", getAgeUnit())
            .append("birthday", getBirthday())
            .append("idCardNo", getIdCardNo())
            .append("mobile", getMobile())
            .append("salary", getSalary())
            .append("salaryType", getSalaryType())
            .append("photo", getPhoto())
            .append("deleteFlag", getDeleteFlag())
            .append("addTime", getAddTime())
            .append("addBy", getAddBy())
            .append("modifyTime", getModifyTime())
            .append("modifyBy", getModifyBy())
            .toString();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
